package Coding.Exception;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class trycatchfinally3 {

    public static void main(String[] args) {

        try (
                FileOutputStream fileOutputStream = new FileOutputStream("./demo");
                ){
            fileOutputStream.write(1);

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
